/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package modulos.creditos.vista;

import java.awt.Cursor;
import vista.modelo.OperacionesVarias;

/**
 *
 * @author vic
 */
public class AcercaDe extends javax.swing.JInternalFrame {

    /**
     * Creates new form AcercaDe
     */
    public AcercaDe() {
        initComponents();
        OperacionesVarias.cerrarVentanaEscape(this);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        btnAcaptar = new javax.swing.JButton();
        lblCopyright = new javax.swing.JLabel();
        lblWeb = new javax.swing.JLabel();
        lblCiudad = new javax.swing.JLabel();
        lblDerechos = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();

        setClosable(true);
        setResizable(true);
        setTitle("Acerca de Historias Clinicas");
        setFrameIcon(new javax.swing.ImageIcon(getClass().getResource("/jpgs/jabber_protocol.png"))); // NOI18N
        setMinimumSize(new java.awt.Dimension(450, 550));
        setPreferredSize(new java.awt.Dimension(550, 430));
        setVisible(true);
        getContentPane().setLayout(null);

        btnAcaptar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/jpgs/accept.png"))); // NOI18N
        btnAcaptar.setText("Aceptar");
        btnAcaptar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAcaptarActionPerformed(evt);
            }
        });
        getContentPane().add(btnAcaptar);
        btnAcaptar.setBounds(210, 360, 110, 27);

        lblCopyright.setText("Copyright © 2012 Medikux");
        getContentPane().add(lblCopyright);
        lblCopyright.setBounds(290, 170, 170, 17);

        lblWeb.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
        lblWeb.setText("<html><a href=\"http://www.medikux.com/\">www.medikux.com</a></html>");
        lblWeb.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblWebMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                lblWebMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                lblWebMouseExited(evt);
            }
        });
        getContentPane().add(lblWeb);
        lblWeb.setBounds(310, 200, 200, 17);

        lblCiudad.setText("Loja- Ecuador");
        getContentPane().add(lblCiudad);
        lblCiudad.setBounds(340, 260, 87, 17);

        lblDerechos.setText("Todos Los Derechos Reservados");
        getContentPane().add(lblDerechos);
        lblDerechos.setBounds(270, 230, 235, 17);
        getContentPane().add(jSeparator1);
        jSeparator1.setBounds(240, 140, 300, 10);

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/jpgs/ward.png"))); // NOI18N
        getContentPane().add(jLabel1);
        jLabel1.setBounds(20, 120, 212, 256);

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/jpgs/Medikux info.png"))); // NOI18N
        getContentPane().add(jLabel2);
        jLabel2.setBounds(60, 0, 490, 130);

        jLabel3.setFont(new java.awt.Font("DejaVu Sans", 3, 13)); // NOI18N
        jLabel3.setText("HISTORIAS CLINICAS");
        getContentPane().add(jLabel3);
        jLabel3.setBounds(270, 120, 220, 17);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnAcaptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAcaptarActionPerformed
        this.dispose();
    }//GEN-LAST:event_btnAcaptarActionPerformed

    private void lblWebMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblWebMouseClicked
        OperacionesVarias.abrirURL("http://www.medikux.com");
    }//GEN-LAST:event_lblWebMouseClicked

    private void lblWebMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblWebMouseEntered
        lblWeb.setCursor(new Cursor(Cursor.HAND_CURSOR));
    }//GEN-LAST:event_lblWebMouseEntered

    private void lblWebMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblWebMouseExited
        lblWeb.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
    }//GEN-LAST:event_lblWebMouseExited

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAcaptar;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JLabel lblCiudad;
    private javax.swing.JLabel lblCopyright;
    private javax.swing.JLabel lblDerechos;
    private javax.swing.JLabel lblWeb;
    // End of variables declaration//GEN-END:variables
}
